package com.kamistoat.meimeistore.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * @EnableCaching:开启缓存层。也可以在config文件中配置
 * @EnableFeignClients:开启远程接口
 * @EnableDiscoveryClient:开启注册中心
 * @EnableRedisHttpSession:开启session-redis
 */
//@EnableCaching
@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.kamistoat.meimeistore.product.feign")
@EnableDiscoveryClient
@MapperScan("com.kamistoat.meimeistore.product.dao")
@SpringBootApplication
public class MeimeistoreWebBackstageProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MeimeistoreWebBackstageProductApplication.class, args);
    }

}
